home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / wrap.h < prev    next >
C/C++ Source or Header  |  1998-09-15  |  936b  |  40 lines

  1. /*
  2.  * @(#)wrap.h    1.6 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. #ifndef _WRAP_H_
  16. #define _WRAP_H_
  17.  
  18. #include "native.h"
  19. #include "typecodes.h"
  20.  
  21. typedef union {
  22.     int32_t x[2];
  23.     long    i;            /* z,b,c,s,i */
  24.     float   f;
  25.     double  d;
  26.     int64_t l;
  27.     char    *p;
  28.     HObject *h;
  29. } JavaValue;
  30.  
  31. #define    T_BAD    T_XXUNUSEDXX1    /* 1 */
  32.  
  33. /*
  34.  * Routines to wrap and unwrap primitive Java types.
  35.  */
  36. extern HObject *    java_wrap(JavaValue, unsigned char);
  37. extern unsigned char    java_unwrap(HObject *, JavaValue *);
  38.  
  39. #endif /* _WRAP_H */
  40.